package com.scorpio.appuser.enums;

public enum  UserStatusEnum {
    Normal("0", "正常"),
    Disable("1", "停用");

    private String value;

    private String info;

    UserStatusEnum(String value, String info) {
        this.value = value;
        this.info = info;
    }

    public static UserStatusEnum get(String value) {
        for (UserStatusEnum statusEnum : UserStatusEnum.values()) {
            if (statusEnum.getValue().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }
}
